package com.example.lvsuo.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.example.lvsuo.entity.Log;
import com.example.lvsuo.entity.vo.LogVo;
import com.example.lvsuo.mapper.LogMapper;
import com.example.lvsuo.service.ILogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 * 案件 服务实现类
 * </p>
 *
 * @author 欢喜
 * @since 2021-04-28
 */
@Service
public class LogServiceImpl extends ServiceImpl<LogMapper, Log> implements ILogService {
    @Autowired
    LogMapper logMapper;

    /**
     * 查询案件
     * @param logVo
     * @return
     */
    @Override
    public List<LogVo> getLog(LogVo logVo) {
        return logMapper.getLog(logVo);
    }

    /**
     * 根据id查询案件
     * @param id
     * @return
     */
    @Override
    public List<Log> getLogId(String id) {
        return logMapper.getLogId(id);
    }

    /**
     * 查询客户案件
     * @param logVo
     * @return
     */
    @Override
    public List<LogVo> getLogClient(LogVo logVo) {
        return logMapper.getLogClient(logVo);
    }
}
